package cn.dbqn.service;

import cn.dbqn.dao.DrugMapper;
import cn.dbqn.entity.Drug;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DrugService {
    @Autowired
    private DrugMapper drugMapper;

    public List<Drug> findAllYpxx(){
        return drugMapper.findAll();
    }

    public Drug ypxx(Integer dno){
        return drugMapper.ypxx(dno);
    }
}
